package com.bw.ivideoproject.live

import android.content.Intent
import com.bw.ivideoproject.R
import com.bw.ivideoproject.databinding.FragmentLiveBinding
import com.bw.lib_mvvm.BaseFragment

class LiveFragment : BaseFragment<FragmentLiveBinding>() {

    private lateinit var intent:Intent

    override fun bindLayout(): Int {
        return R.layout.fragment_live
    }

    override fun initView() {

    }

    override fun initData() {
        intent = Intent(requireActivity(),LiveActivity::class.java)
        binding.startLive.setOnClickListener {
            intent.putExtra("isBroadcastr",true)
            startActivity(intent)
        }

        binding.watchLive.setOnClickListener {
            intent.putExtra("isBroadcastr",false)
            startActivity(intent)
        }
    }

}